﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BluSteamClient.Model
{
    public class ProtocolBuilder
    {
        public static string BuildLoginString(string username, string password)
        {
            return string.Format("$CP2011~{0}~TRANSACTION~LOGIN~{1}~NULL~NULL~NULL~NULL~NULL", username, password);
        }

        public static string BuildRegisterString(string username, string password, string email)
        {
            return string.Format("$CP2011~{0}~TRANSACTION~REGISTER~{1}~NULL~NULL~{2}~NULL~NULL", username, password, email);
        }

        public static string BuildLogoutString(string username)
        {
            return string.Format("$CP2011~{0}~COMMAND~LOGOUT~NULL~NULL~NULL~NULL~NULL~NULL", username);
        }
    }
}
